﻿<%@ page language="java" pageEncoding="UTF-8"
	errorPage="/ui/defaultException.jsp"%>
<%@include file="/ui/tags.jsp"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <title>${hotel.hotelName }怎么样</title>
    
    <meta http-equiv="content-type" content="text/html; charset=utf-8" />
    <%@include file="/ui/portal/commonjscss.jsp"%>
</head>
<body>
    <div class="page">
    	<c:set var="renderView" value="4" scope="page"></c:set>
        <%@include file="/ui/portal/head.jsp"%>
         <c:set var="resourceType" value="6" scope="page"></c:set>
        <%@include file="/ui/portal/hotel/hotelhead.jsp"%>
        <div id="container" class="container margin10">
            <div class="hotel-detail-info">
                <c:choose>
              		<c:when test="${empty currentHotelReview }">
              			<b>酒店暂无评论，敬请期待!</b>
              		</c:when>
              		<c:otherwise>
              			 <div class="hotel-score-left">
                	<c:choose>
                		<c:when test="${curReviewType == 'daodao' or curReviewType == 'trip' }">
                			<c:forEach var="record" items="${reviewRecords }">
	                		
	                		 <div class="hotel-evaluate-item">
	                        <div class="hotel-evaluate-item-title">
	                           ${record.recordTitle }
	                        </div>
	                        <div class="hotel-evaluate-item-score">
	                        	<c:choose>
	                        		<c:when test="${record.recordScore == 1 }">
	                        			<img src="${cpath}/resources/portal/img/level/level1.jpg" alt="${record.recordScore }分"/>
	                        		</c:when>
	                        		<c:when test="${record.recordScore > 1 and record.recordScore < 2}">
	                        			<img src="${cpath}/resources/portal/img/level/level1.5.jpg" alt="${record.recordScore }分"/>
	                        		</c:when>
	                        		<c:when test="${record.recordScore == 2}">
	                        			<img src="${cpath}/resources/portal/img/level/level2.jpg" alt="${record.recordScore }分"/>
	                        		</c:when>
	                        		<c:when test="${record.recordScore > 2 and record.recordScore < 3}">
	                        			<img src="${cpath}/resources/portal/img/level/level2.5.jpg" alt="${record.recordScore }分"/>
	                        		</c:when>
	                        		<c:when test="${record.recordScore == 3}">
	                        			<img src="${cpath}/resources/portal/img/level/level3.jpg" alt="${record.recordScore }分"/>
	                        		</c:when>
	                        		<c:when test="${record.recordScore > 3 and record.recordScore < 4}">
	                        			<img src="${cpath}/resources/portal/img/level/level3.5.jpg" alt="${record.recordScore }分"/>
	                        		</c:when>
	                        		<c:when test="${record.recordScore == 4}">
	                        			<img src="${cpath}/resources/portal/img/level/level4.jpg" alt="${record.recordScore }分"/>
	                        		</c:when>
	                        		<c:when test="${record.recordScore > 4 and  record.recordScore < 5}">
	                        			<img src="${cpath}/resources/portal/img/level/level4.5.jpg" alt="${record.recordScore }分"/>
	                        		</c:when>
	                        		<c:otherwise>
	                        			<img src="${cpath}/resources/portal/img/level/level5.jpg" alt="${record.recordScore }分"/>
	                        		</c:otherwise>
	                        	</c:choose>
	                            
	                        </div>
	                        <div class="hotel-evaluate-item-date">
	                            ${record.recordAutor } ${record.recordTime }
	                        </div>
	                        <div class="hotel-evaluate-item-info">
	                             ${record.recordDesc }
	                        </div>
                   	    </div>
                   	   		 </c:forEach>
                		</c:when>
                		<c:when test="${curReviewType == 'booking' }">
                			<c:forEach var="record" items="${reviewRecords }">
	                		 <div class="hotel-evaluate-item">
	                        <div class="hotel-evaluate-item-title">
	                          ${record.recordAutor } ${record.recordTime }
	                        </div>
	                        <div class="hotel-evaluate-item-score">
	                            <b style="color:#990033;">${record.recordScore }</b>
	                        </div>
	                        <div class="hotel-evaluate-item-date">
	                            
	                        </div>
	                        <div class="hotel-evaluate-item-info">
	                             ${record.recordDesc }
	                        </div>
                   	    	</div>
                   	   		</c:forEach>
                		</c:when>
                		<c:otherwise>
                		 <c:forEach var="record" items="${reviewRecords }">
	                		 <div class="hotel-evaluate-item">
	                        <div class="hotel-evaluate-item-title">
	                           ${record.recordTitle }
	                        </div>
	                        <div class="hotel-evaluate-item-score">
	                            <b style="color:#990033;">${record.recordScore }</b>
	                        </div>
	                        <div class="hotel-evaluate-item-date">
	                            ${record.recordAutor } ${record.recordTime }
	                        </div>
	                        <div class="hotel-evaluate-item-info">
	                             ${record.recordDesc }
	                        </div>
                   	    </div>
                   	   		 </c:forEach>
                		</c:otherwise>
                	</c:choose>
                   
                   
                    <div class="hotel-evaluate-item-view">
                        <a href="${currentHotelReview.reviewUrl }" target="_blank">查看<img src="${cpath}/resources/portal/img/eval/${curReviewType }20.jpg" />对此酒店的全部${currentHotelReview.reviewCount }条点评&gt;&gt;</a>
                    </div>
                </div>
                <div class="hotel-score-right">
                
                <div class="hotel-score-r2 ${arrowPosition }">&nbsp;</div>
                    <c:if test="${!empty daodaoReview }">
                    <a href="${cpath}/hotel/${hotel.hotelId}/review?rid=${daodaoReview.reviewId}">
                    <div class="hotel-score-from-item">
                        <div class="hotel-score-from-item-title">
                            <div class="hotel-score-from-item-title-img daodao30">
                                <img src="${cpath}/resources/portal/img/eval/daodao30.jpg" alt="daodao"/>
                            </div>
                        </div>
                        <div class="hotel-score-from-item-info">
                            <div class="hotel-score-from-item-info-item">
                            
                                总评分：<b>${daodaoReview.reviewScore }</b>/${daodaoReview.reviewFullScore }
                            </div>
                            <div class="hotel-score-from-item-info-item">
                                排名：<b>${daodaoReview.reviewRank }</b>
                            </div>
                            <div class="hotel-score-from-item-info-item">
                                <b>${daodaoReview.reviewCount }</b>条点评
                            </div>
                        </div>
                    </div>
                    </a>
                    </c:if>
                    <c:if test="${!empty tripadvisorReview }">
                     <a href="${cpath}/hotel/${hotel.hotelId}/review?rid=${tripadvisorReview.reviewId}">
                    <div class="hotel-score-from-item">
                        <div class="hotel-score-from-item-title">
                            <div class="hotel-score-from-item-title-img trip30">
                                <img src="${cpath}/resources/portal/img/eval/trip30.jpg" alt="trip"/>
                            </div>
                        </div>
                        <div class="hotel-score-from-item-info">
                        	 <div class="hotel-score-from-item-info-item">
                                好评：<b class="tripb">${tripadvisorReview.reviewScore }%</b>
                             </div>
                            <div class="hotel-score-from-item-info-item">
                                排名：<b>${tripadvisorReview.reviewRank }</b>
                            </div>
                            <div class="hotel-score-from-item-info-item">
                                <b>${tripadvisorReview.reviewCount}</b>条点评
                            </div>
                        </div>
                    </div>
                    </a>
                    </c:if>
                    <c:if test="${!empty hotelsReview }">
                    <a href="${cpath}/hotel/${hotel.hotelId}/review?rid=${hotelsReview.reviewId}">
                    <div class="hotel-score-from-item">
                        <div class="hotel-score-from-item-title">
                            <div class="hotel-score-from-item-title-img hotel30">
                                <img src="${cpath}/resources/portal/img/eval/hotel30.jpg" alt="hotel"/>
                            </div>
                        </div>
                        <div class="hotel-score-from-item-info">
                            <div class="hotel-score-from-item-info-item">
                                总评分：<b>${hotelsReview.reviewScore }</b>/${hotelsReview.reviewFullScore }
                            </div>
                            <div class="hotel-score-from-item-info-item">
                                评价：<b>${hotelsReview.reviewLevel }</b>
                            </div>
                            <div class="hotel-score-from-item-info-item">
                                <b>${hotelsReview.reviewCount}</b>条点评
                            </div>
                        </div>
                    </div>
                    </a>
                    </c:if>
                    <c:if test="${!empty bookingReview }">
                    <a href="${cpath}/hotel/${hotel.hotelId}/review?rid=${bookingReview.reviewId}">
                    <div class="hotel-score-from-item">
                        <div class="hotel-score-from-item-title">
                            <div class="hotel-score-from-item-title-img booking30">
                                <img src="${cpath}/resources/portal/img/eval/booking30.jpg" alt="booking"/>
                            </div>
                        </div>
                        <div class="hotel-score-from-item-info">
                            <div class="hotel-score-from-item-info-item">
                                总评分：<b>${bookingReview.reviewScore }</b>/${bookingReview.reviewFullScore }
                            </div>
                            <div class="hotel-score-from-item-info-item">
                                评价：<b>${bookingReview.reviewLevel }</b>
                            </div>
                            <div class="hotel-score-from-item-info-item">
                                <b>${bookingReview.reviewCount}</b>条点评
                            </div>
                        </div>
                    </div>
                    </a>
                    </c:if>
                </div>
              		</c:otherwise>
                </c:choose>
                <div class="clear">
                </div>
            </div>
        </div>
        <%@include file="/ui/portal/footer.jsp"%>
    </div>
</body>
</html>
